#pragma once
#include <QThread>
#include <QMutex>
#include <QWaitCondition>
#include <QQueue>
#include "MessageHelper.h"

class SendThread : public QThread {
    Q_OBJECT

signals:
    void messageReady(const MSG& msg);

private:
    QMutex m_lock;
    QMutex queue_lock;
    QWaitCondition queue_waitCond;
    void run() override;
};